<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:29:"themes/aylt/portal/index.html";i:1521429284;s:60:"/data/home/byu3313560001/htdocs/themes/aylt/public/head.html";i:1520869999;s:64:"/data/home/byu3313560001/htdocs/themes/aylt/public/function.html";i:1520869999;s:62:"/data/home/byu3313560001/htdocs/themes/aylt/public/navTop.html";i:1520869999;s:62:"/data/home/byu3313560001/htdocs/themes/aylt/public/footer.html";i:1520869999;s:63:"/data/home/byu3313560001/htdocs/themes/aylt/public/scripts.html";i:1520869999;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <title>首页 <?php echo (isset($site_info['site_name']) && ($site_info['site_name'] !== '')?$site_info['site_name']:''); ?></title>
    <meta name="keywords" content="<?php echo (isset($site_info['site_seo_keywords']) && ($site_info['site_seo_keywords'] !== '')?$site_info['site_seo_keywords']:''); ?>"/>
    <meta name="description" content="<?php echo (isset($site_info['site_seo_description']) && ($site_info['site_seo_description'] !== '')?$site_info['site_seo_description']:''); ?>">
    
<?php 
/*可以加多个方法哟！*/
function _sp_helloworld(){
	echo "hello ThinkCMF!";
}

function _sp_helloworld2(){
	echo "hello ThinkCMF2!";
}


function _sp_helloworld3(){
	echo "hello ThinkCMF3!";
}

 ?>
<meta name="author" content="爱悦蓝天">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link rel="icon" href="/themes/aylt/public/assets/images/logo.png" type="image/png">
<link rel="shortcut icon" href="/themes/aylt/public/assets/images/logo.png" type="image/png">
<link href="/themes/aylt/public/assets/simpleboot3/themes/simpleboot3/bootstrap.min.css" rel="stylesheet">
<link href="/themes/aylt/public/assets/simpleboot3/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet"
      type="text/css">
<!--[if IE 7]>
<link rel="stylesheet" href="/themes/aylt/public/assets/simpleboot3/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
<![endif]-->
<link href="/themes/aylt/public/assets/css/style.css?{random()}" rel="stylesheet">
<style>
    /*html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);-webkit-filter: grayscale(1);}*/
    #backtotop {
        position: fixed;
        bottom: 50px;
        right: 20px;
        display: none;
        cursor: pointer;
        font-size: 50px;
        z-index: 9999;
    }

    #backtotop:hover {
        color: #333
    }

    #main-menu-user li.user {
        display: none
    }
</style>
<script type="text/javascript">
    //全局变量
    var GV = {
        ROOT: "/",
        WEB_ROOT: "/",
        JS_ROOT: "static/js/"
    };
</script>
<script src="/themes/aylt/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/themes/aylt/public/assets/js/jquery-migrate-1.2.1.js"></script>
<script src="/static/js/wind.js"></script>
	
    <link href="/themes/aylt/public/assets/css/slippry/slippry.css" rel="stylesheet">
    <style>
        .caption-wraper {
            position: absolute;
            left: 50%;
            bottom: 2em;
        }

        .caption-wraper .caption {
            position: relative;
            left: -50%;
            background-color: rgba(0, 0, 0, 0.54);
            padding: 0.4em 1em;
            color: #fff;
            -webkit-border-radius: 1.2em;
            -moz-border-radius: 1.2em;
            -ms-border-radius: 1.2em;
            -o-border-radius: 1.2em;
            border-radius: 1.2em;
        }

        .tc-gridbox {
            margin: 0;
        }

        @media (max-width: 767px) {
            .caption-wraper {
                left: 0;
                bottom: 0.4em;
            }

            .caption-wraper .caption {
                left: 0;
                padding: 0.2em 0.4em;
                font-size: 0.92em;
                -webkit-border-radius: 0;
                -moz-border-radius: 0;
                -ms-border-radius: 0;
                -o-border-radius: 0;
                border-radius: 0;
            }
        }

    </style>
    <?php 
    \think\Hook::listen('before_head_end',$temp5ab9d53b47f8a,null,false);
 ?>
</head>
<body class="body-white" style="position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top:0;
">

<a href="/" target="_self">
    <img src="<?php echo cmf_get_image_preview_url($site_info['site_logo']); ?>" class="logo">
</a>
<nav id="topNav" class="navbar navbar-default navbar-fixed-top active">
    <div>
        <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">
            <ul class="nav">
                <?php

function __parse_navigation4173fefbb447d102fa1a1bc39bfd433a($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation4173fefbb447d102fa1a1bc39bfd433a';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    
                        <li class="menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                            <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                            </a>
                        </li>
                    
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('4',0);
if(''==''): ?>
    <?php echo __parse_navigation4173fefbb447d102fa1a1bc39bfd433a($menus); else: ?>
    < id="" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigation4173fefbb447d102fa1a1bc39bfd433a($menus); ?>
    </>
<?php endif; ?>

                <li class="menu-item menu-item-level-1 levelgt1" style="height: 50px">

                </li>
                <?php

function __parse_navigationeacb0ebed957b07b605674638b1376a0($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigationeacb0ebed957b07b605674638b1376a0';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    
                        <li class="menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                            <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                            </a>
                        </li>
                    
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('5',0);
if(''==''): ?>
    <?php echo __parse_navigationeacb0ebed957b07b605674638b1376a0($menus); else: ?>
    < id="" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigationeacb0ebed957b07b605674638b1376a0($menus); ?>
    </>
<?php endif; ?>

            </ul>
        </div>
    </div>
</nav>


<a href="/portal/list/index/id/4.html" target="_self">
    <div class="yuan" style="top: 50%;
    left: 16%;">
        <div class="text">
            <div class="text-kids">
                <img src="/themes/aylt/public/assets/images/kids.png">
            </div>
            <div class="text-t">
                游泳俱乐部
            </div>
        </div>
        <img src="/themes/aylt/public/assets/images/jian.png" class="jian" style="animation-delay: 0.1s;">
    </div>
</a>
<a href="/portal/list/index/id/2.html" target="_self">
    <div class="yuan" style="top: 30%;animation-delay: 0.5s;
    left: 22%;">
        <div class="text">
            <div class="text-kids">
                <img src="/themes/aylt/public/assets/images/kids.png">
            </div>
            <div class="text-t">
                国际幼儿园
            </div>
        </div>
        <img src="/themes/aylt/public/assets/images/jian.png" class="jian" style="animation-delay: 0.3s;">

    </div>
</a>
<a href="/portal/list/index/id/2.html" target="_self">

    <div class="yuan" style="top: 40%;animation-delay: 1s;
    left: 44%;">
        <div class="text">
            <div class="text-kids">
                <img src="/themes/aylt/public/assets/images/kids.png">
            </div>
            <div class="text-t">
                亲子中心
            </div>
        </div>
        <img src="/themes/aylt/public/assets/images/jian.png" class="jian" style="animation-delay: 0.5s;">
    </div>
</a>
<a href="/portal/list/index/id/3.html" target="_self">
    <div class="yuan" style="top: 35%;animation-delay: 1.5s;
    left: 65%;">
        <div class="text">
            <div class="text-kids">
                <img src="/themes/aylt/public/assets/images/kids.png">
            </div>
            <div class="text-t" style="font-size: 20px">
                冰上运动中心
            </div>
        </div>
        <img src="/themes/aylt/public/assets/images/jian.png" class="jian" style="animation-delay: 0.7s;">
    </div>
</a>
<div style="height:100%;background: url('/themes/aylt/public/assets/images/index_bg.jpg') no-repeat center;
    background-size: 100% 100%;">

</div>
<div id="footer" class="footer">
    <?php 
    \think\Hook::listen('footer_start',$temp5ab9d53b4800b,null,false);
 ?>
    <div style="height: 50px;width:1280px;bottom: 0;position: absolute;left: 50%;transform:translateX(-50%)">
        <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">
            <ul id="main-menu" class="navbar-nav">
                <li>
                    <?php if(!(empty($site_info['site_icp']) || (($site_info['site_icp'] instanceof \think\Collection || $site_info['site_icp'] instanceof \think\Paginator ) && $site_info['site_icp']->isEmpty()))): ?>
                        <a href="http://www.miitbeian.gov.cn/" style="font-size: 12px"
                           target="_blank"><?php echo $site_info['site_icp']; ?></a>
                    <?php endif; ?>
                </li>
                <?php

function __parse_navigatione3eec3cacdc1cb2664a9cc93e39d6510($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigatione3eec3cacdc1cb2664a9cc93e39d6510';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): if($level > 1): ?>
                            <li class="menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                                <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                    <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                                </a>
                            </li>
                            <?php else: ?>
                            <li class="menu-item menu-item-level-<?php echo $level; ?>">
                                <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                    <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                                </a>
                            </li>
                        <?php endif; endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
                        <a href="#" class="dropdown-toggle dropdown-toggle-<?php echo $level; ?>" data-toggle="dropdown">
                            <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
                        </a>
                    
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('',0);
if(''==''): ?>
    <?php echo __parse_navigatione3eec3cacdc1cb2664a9cc93e39d6510($menus); else: ?>
    < id="main-navigation" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigatione3eec3cacdc1cb2664a9cc93e39d6510($menus); ?>
    </>
<?php endif; ?>

            </ul>
            <ul class="footer-link">
                <?php
     $__LINKS__ = \app\admin\service\ApiService::links();
if(is_array($__LINKS__) || $__LINKS__ instanceof \think\Collection || $__LINKS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LINKS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <li>
                        <?php if(!(empty($vo['code']) || (($vo['code'] instanceof \think\Collection || $vo['code'] instanceof \think\Paginator ) && $vo['code']->isEmpty()))): ?>
                            <img class="code-img" src="<?php echo cmf_get_image_preview_url($vo['code']); ?>">
                        <?php endif; ?>
                        <a href="<?php echo $vo['url']; ?>" target="<?php echo $vo['target']; ?>">
                            <span><?php echo $vo['name']; ?></span>
                            <img style="height: 20px" src="<?php echo cmf_get_image_preview_url($vo['image']); ?>"/>
                        </a>
                    </li>
                
<?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
</div>
<div id="backtotop">
    <i class="fa fa-arrow-circle-up"></i>
</div>


<!-- /container -->
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/themes/aylt/public/assets/simpleboot3/bootstrap/js/bootstrap.min.js"></script>
    <script src="/static/js/frontend.js"></script>
	<script>
	$(function(){
		$("#main-menu li.dropdown").hover(function(){
			$(this).addClass("open");
		},function(){
			$(this).removeClass("open");
		});
		
		$("#main-menu a").each(function() {
			if ($(this)[0].href == String(window.location)) {
				$(this).parentsUntil("#main-menu>ul>li").addClass("active");
			}
		});
		
		$.post("<?php echo url('user/index/isLogin'); ?>",{},function(data){
		    console.log(data);
			if(data.code==1){
				if(data.data.user.avatar){
				}

				$("#main-menu-user span.user-nickname").text(data.data.user.user_nickname?data.data.user.user_nickname:data.data.user.user_login);
				$("#main-menu-user li.login").show();
                $("#main-menu-user li.offline").hide();

			}

			if(data.code==0){
                $("#main-menu-user li.login").hide();
				$("#main-menu-user li.offline").show();
			}

		});

        ;(function($){
			$.fn.totop=function(opt){
				var scrolling=false;
				return this.each(function(){
					var $this=$(this);
					$(window).scroll(function(){
						if(!scrolling){
							var sd=$(window).scrollTop();
							if(sd>100){
								$this.fadeIn();
							}else{
								$this.fadeOut();
							}
						}
					});
					
					$this.click(function(){
						scrolling=true;
						$('html, body').animate({
							scrollTop : 0
						}, 500,function(){
							scrolling=false;
							$this.fadeOut();
						});
					});
				});
			};
		})(jQuery); 
		
		$("#backtotop").totop();
		
		
	});
	</script>


<script src="/themes/aylt/public/assets/js/slippry.min.js"></script>
<script>
    $(function () {
        $(".list-unstyled").slippry({
            transition: 'fade',
            useCSS: true,
            captions: false,
            speed: 1000,
            pause: 2000,
            auto: true,
            preload: 'visible',
            controls: false,
            adaptiveHeight: false,
            page: false
        });
        $(".list-unstyled").show();

//        $(".yuan").mousemove(function (e) {
//            $(this).find(".text").css("animation-name", "textAn")
//        })
//        $(".yuan").mouseleave(function (e) {
//            $(this).find(".text").css("animation-name", "textOutAn")
//        })

        $("body").mousemove(function (e) {
            $(".text").css("animation-name", "textInAn")
            $(".jian").fadeIn()
            $("#footer").css("animation-name", "footerInAn")
            $("#topNav").css("animation-name", "topNavInAn")
        })
        $("body").mouseleave(function (e) {
            $(".jian").fadeOut()
            $(".text").css("animation-name", "textOutAn")
            $("#footer").css("animation-name", "footerOutAn")
            $("#topNav").css("animation-name", "topNavOutAn")
        })
    });
</script>
<?php 
    \think\Hook::listen('before_body_end',$temp5ab9d53b4808a,null,false);
 ?>
</body>
</html>
